package com.onesports.intelligent.k12.polarlight.domain.dto.course;

import com.onesports.framework.kit.common.valid.Json;
import com.onesports.framework.kit.common.valid.NotEmpty;
import com.onesports.intelligent.k12.polarlight.domain.vo.course.CourseScheduleTemplateVO;
import com.onesports.intelligent.k12.polarlight.security.SecurityUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Time;
import java.util.Date;
import java.util.List;


/**
 * 社区课程开设时间表
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Data
@ApiModel(value = "社区课程开设时间DTO")
public class CourseOpenDTO {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "课程id", required = true)
    @NotEmpty(message = "课程id不可为空")
    private String courseId;

    @ApiModelProperty(value = "开设时段集合", required = true)
    @NotEmpty(message = "请选择开设时段")
    @Json
    private List<CourseScheduleTemplateDTO> list;

    @ApiModelProperty(value = "机构ID",hidden = true)
    private String organizationId = SecurityUtils.getOrganizationId();


}
